﻿using KAs.SqlSugar.Entity;
using SqlSugar;

namespace KAs.SqlSugar
{
    public interface IRepository<T, TPrimaryKey> : ISimpleClient<T> where T : Entity<TPrimaryKey>, new()
    {
        public Task<long> InsertReturnIdAsync(T insertObj);
        public Task<bool> DeleteInAsync(TPrimaryKey id);
        public string GetDbColumnName(string propertyName);
    }
}
